const { Int32 } = require("mongodb");
const testJson  = require('./schema/test.js')
// const mongoose = require('mongoose')

module.exports = {
  ...testJson,
  users: {
    userName: String, 
    passWord: String,
    createTime: String,
    // vipLv: String,
    // type: String, // 0：游客 1：商家
  },
  usersInfo: {
    userName: String,
    type: String, // 0：游客 1：商家
    birth: String,
    vipLv: String,
  },
  sysMenu: {
    id: String,
    menuName: String, 
    parentId: String,
    menuType: String,
    hidden: String,
    sort: String,
    icon: String,
    updateTime: String,
    createTime: String,
    updateBy: String,
    createBy: String,
    description: String,
    pageUrl: String,
  },
  phoneInfo: {
    goodsUrl: String,
    goodsCode: String,
    goodsBrand: String,
    goodsType: String,
    goodsPrice: Number,
    goodsTitle: String,
    subTitle: String,
    saleNum: String,
    limitNum: Number,
    delFlag: String
  },
  phoneDetail: {
    goodsUrl: String,
    goodsCode: String,
    goodsBrand: String,
    goodsType: String,
    goodsPrice: Number,
    goodsTitle: String,
    subTitle: String,
    saleNum: String
  },
  notebookInfo: {
    goodsUrl: String,
    goodsCode: String,
    goodsBrand: String,
    goodsType: String,
    goodsPrice: Number,
    goodsTitle: String,
    subTitle: String,
    saleNum: String,
    delFlag: String
  },
  makeupInfo: {
    goodsUrl: String,
    goodsCode: String,
    goodsBrand: String,
    goodsType: String,
    goodsPrice: Number,
    goodsTitle: String,
    subTitle: String,
    saleNum: String,
    limitNum: Number,
    delFlag: String,
  },
  shopCar: {
    userName: String,
    goodsCode: String,
    goodsUrl: String,
    goodsBrand: String,
    goodsTitle: String,
    goodsPrice: Number,
    subTitle: String,
    saleNum: String,
    goodsNum: Number,
    date: String,
    orderStatus: String, // 订单状态 0：购物车， 1：待付款
    limitNum: Number,
  }
}
